package com.my.blogs.personblog.Service;

import com.my.blogs.personblog.enity.Root;
import com.my.blogs.personblog.enity.User;
import com.my.blogs.personblog.enity.information;

import java.util.List;

public interface RootService {
    public List<Root> selectAllUsers();
    public Root selectUserById(int id);
    public Root selectUserByUsername(String username);
    public Root selectUserByEmail(String email);
    public Root selectUserByPhone(String phone);
    public Boolean insertUser(User user);
    public Boolean updateUser(User user);
    public Boolean deleteUser(int id);
    public List<Root> sortById(int id);
    public List<Root> selectPage(int page, int pageSize);
    public List<information> selectInformation();
   public information insertInformation(information information);
   public Boolean updateInformation(information information);
   public Boolean deleteInformation(int id);
}
